import { createBrowserRouter, Navigate } from "react-router";
import TablePage from "@/views/TablePage";
import ModalPage from "@/views/ModalPage";
import ToBScene from "@/views/ToBScene";

const router = createBrowserRouter([
  { path: "/", element: <Navigate to="/tobScene" /> },
  {
    path: "/tobScene",
    Component: ToBScene,
    children: [
      { path: "", element: <Navigate to="tablePage" /> },
      { path: "tablePage", Component: TablePage },
      { path: "modalPage", Component: ModalPage },
    ],
  },
]);

export default router;
